def len(s):
    i=0
    while s>=1:
         i+=1
         s/=10
    return i
n=int(input())
list=[]
i=len(n)
j=0

while j<i:
     m=n%10
     list.append(m)
     n/=10
     j+=1
left=0
flag=1
right=i-1
while left<right:
    if(int(list[left])!=int(list[right])):
           flag=0
           break
    right-=1
    left+=1
if(flag==1):
     print('YES')
else:
     print('NO')
